package com.tnl.web.domain;

import java.io.Serializable;
import java.util.List;
import java.util.Set;



/**
 * The persistent class for the role database table.
 * 
 */

public class Role implements Serializable {
	private static final long serialVersionUID = 1L;

	private int idrole;

	private String roleDesc;

	private String roleName;

	private List<Permission> permissions;

    public Role() {
    }

	public int getIdrole() {
		return this.idrole;
	}

	public void setIdrole(int idrole) {
		this.idrole = idrole;
	}

	public String getRoleDesc() {
		return this.roleDesc;
	}

	public void setRoleDesc(String roleDesc) {
		this.roleDesc = roleDesc;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	
	
	

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Role [roleDesc=" + roleDesc + ", roleName=" + roleName + "]";
	}

	public List<Permission> getPermissions() {
		return permissions;
	}

	public void setPermissions(List<Permission> permissions) {
		this.permissions = permissions;
	}
	
	
	
	
	
}